//
// Code (inline and block)
// --------------------------------------------------

// Inline and block code styles
code, 
kbd, 
pre, 
samp {
    font-family: $font-family-monospace;
}

// Inline code
code {
    padding: 2px 4px;
    background-color: #f9f2f4;
    @include fn-border-radius($border-radius-base);
    color: #c7254e;
    font-size: 90%;
}

// User input typically entered via keyboard
kbd {
    padding: 2px 4px;
    background-color: #333333;
    @include fn-border-radius($border-radius-small);
    @include fn-box-shadow(inset 0 -1px 0 rgba(0,0,0,.25));
    color: #ffffff;
    font-size: 90%;
  
    kbd {
        padding: 0;
        background-color: transparent;
        @include fn-border-radius(0);
        @include fn-box-shadow(none);
        font-size: 100%;
        font-weight: bold;
    }
}

// Blocks of code
pre {
    display: block;
    margin: 0 0 ($line-height-computed / 2);
    padding: ($line-height-computed / 2);
    line-height: $line-height-base;
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
    @include fn-border-radius($border-radius-base);
    color: $color-gray-dark;
    font-size: ($font-size-base - 1);
    word-break: break-all;
    word-wrap: break-word;
    
    // Account for some code outputs that place code tags in pre tags
    code {
        padding: 0;
        background-color: transparent;
        @include fn-border-radius(0);
        color: inherit;
        font-size: inherit;
        white-space: pre-wrap;
    }
}
// Enable scrollable blocks of code
.pre-scrollable {
    max-height: 340px;
    overflow-y: scroll;
}